<template>

  <!--
    作者：luoyiming
    时间：2020-06-04
    描述：插件中心-积分商城-商品设置-编辑商品-其它
  -->
  <div>
    <div class="common-form">其他</div>
    <el-form-item label="活動時間" :rules="[{  required: true,  message: '請選擇活動時間'}]" prop="activeTime">
      <el-date-picker v-model="form.activeTime" type="datetimerange" range-separator="至" start-placeholder="開始日期" end-placeholder="結束日期" format="YYYY-MM-DD HH:mm:ss"
          value-format="YYYY-MM-DD HH:mm:ss">
      </el-date-picker>
    </el-form-item>
    <el-form-item label="訂金" prop="money" :rules="[{  required: true,  message: '請填寫訂金'}]">
      <el-input type="number" v-model="form.money" class="max-w460"></el-input>
    </el-form-item>
    <el-form-item label="限購數量" prop="limitNum" :rules="[{  required: true,  message: '請填寫限購數量'}]">
      <el-input type="number" v-model="form.limitNum" class="max-w460"></el-input>
    </el-form-item>
    <el-form-item label="排序" prop="sort" :rules="[{  required: true,  message: '請填寫排序'}]">
      <el-input type="number" v-model="form.sort" class="max-w460"></el-input>
    </el-form-item>
    <el-form-item label="商品狀態">
      <el-radio-group v-model="form.status">
        <el-radio :label="10">上架</el-radio>
        <el-radio :label="20">下架</el-radio>
      </el-radio-group>
    </el-form-item>
  </div>
</template>

<script>
export default {
  inject: ['form']
};
</script>

